import path from "path";
import { defineConfig } from "vite";

export default defineConfig({
  base: "./",
  resolve: {
    alias: {
      'scenes': path.resolve(__dirname, "src/scenes"),
      'sprites': path.resolve(__dirname, "src/sprites"),
    },
  },
  build: {
    rollupOptions: {
      output: {
        manualChunks: {
          phaser: ["phaser"],
        },
      },
    },
  },
  server: {
    port: 5173,
  },
});
